package kr.co.doriclassic.pro06_01;

import java.util.Scanner;
public class Progression {
	private static int[] inpNum = new int[3];
	public static void main(String[] args) {
		int tempNum=0;
		Scanner sc = new Scanner(System.in);
			
		for(int i=0;i<3;i++){
			System.out.print("정수를 입력하시오:");
			inpNum[i] = sc.nextInt();
			
		}
		for(int i=0;i<inpNum.length;i++){
			for(int j=1;j<inpNum.length;j++){
				if (inpNum[j] < inpNum[j - 1]) {
					tempNum = inpNum[j - 1];
					inpNum[j - 1] = inpNum[j];
					inpNum[j] = tempNum;
				}
			}
		}
		for(int i=0;i<inpNum.length;i++){
			System.out.print(inpNum[i]+" ");
		}		
	}	
}